package com.topofstack.flp.ui;

import com.bappi.custom.activities.CustomActivity;
import com.topofstack.flp.FLPApplication;
import com.topofstack.flp.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class NotesActivity extends CustomActivity implements OnClickListener {
	
	Button btnAddANote, btnMyNotes;
	FLPApplication application;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_notes);
		
		application = (FLPApplication)getApplication();
		
		btnAddANote = (Button)findViewById(R.id.btnAddANote);
		btnAddANote.setOnClickListener(this);
		
		btnMyNotes = (Button)findViewById(R.id.btnMyNotes);
		btnMyNotes.setOnClickListener(this);
	}

	@Override
	public void onClick(View sender) {
		if(sender == btnAddANote){
			Intent i = new Intent(this, NoteComposeActivity.class);
			pushIntnet(i);
//			startActivity(i);
		}
		else if(sender == btnMyNotes){
			Intent i = new Intent(this, NoteListActivity.class);
			pushIntnet(i);
//			startActivity(i);
		}
	}
}
